package com.shop.auth.repository;


import com.shop.auth.model.User;
import org.springframework.data.jpa.repository.JpaRepository;


public interface UserRepository extends JpaRepository<User, Long> {
    // 根据用户名查找用户
    User findByUsername(String username);
    // 检查用户名是否已存在
    Boolean existsByUsername(String username);
    // 检查邮箱是否已存在
    Boolean existsByEmail(String email);
}
